package com.hanserwei.community.entity.po;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import io.swagger.v3.oas.annotations.media.Schema;
import java.io.Serial;
import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDateTime;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * 物业收费记录表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("property_info")
@Schema(description = "物业收费记录")
public class PropertyInfo implements Serializable {
    @Serial
    private static final long serialVersionUID = 1L;

    /** 主键 */
    @TableId(value = "id", type = IdType.AUTO)
    @Schema(description = "主键")
    private Integer id;

    /** 收费类型ID */
    @TableField("type_id")
    @Schema(description = "收费类型ID")
    private Integer typeId;

    /** 实收金额 */
    @TableField("money")
    @Schema(description = "实收金额")
    private BigDecimal money;

    /** 起始日期 */
    @TableField("start_date")
    @Schema(description = "起始日期")
    private LocalDateTime startDate;

    /** 截止日期 */
    @TableField("end_date")
    @Schema(description = "截止日期")
    private LocalDateTime endDate;

    /** 缴费状态：0-未缴，1-已缴，2-部分缴付 等 */
    @TableField("status")
    @Schema(description = "缴费状态：0-未缴，1-已缴，2-部分缴付")
    private Integer status;

    /** 关联房屋ID */
    @TableField("house_id")
    @Schema(description = "关联房屋ID")
    private Integer houseId;

    /** 备注 */
    @TableField("remarks")
    @Schema(description = "备注")
    private String remarks;
}
